<?php

namespace App\Http\Controllers;

use App\Models\Airport;

class AirportController extends Controller
{
    public function index(){
        $airports = Airport::all();
        return view('airport.index', compact('airports'));
    }

    public function show($id){
        $airport = Airport::where('id', $id)->first();
        return view('airport.show', compact('airport'));
    }
}
